
#ifndef  __LIB_JPEG_H__
#define  __LIB_JPEG_H__



#include "debug.h"
#include "include_other.h"
#include "include_com.h"



typedef struct _jpeg_file_t
{
	char   filename[1024];
	FILE*  fp;			

	struct jpeg_decompress_struct cinfo;
	struct jpeg_error_mgr jerr;

	int width;			//图像宽度
	int height;			//图像高度
	int size;			//图像大小
	int row_size;		//每行占用的字节大小
	int Bpp;			//Bytes per pixel

	uint8_t *buffer;	//解压后的图像buffer
}jpeg_file_t;







#endif



